package session.stateless;

import javax.ejb.Local;
import entity.Employee;
import java.util.List;

@Local
public interface EmployeeBeanLocal {
    public Long getEmployeeId(String userName); 
    public Employee getEmployee(String userName);
    public long createNewEmployee(String username, String password, String employeeName, String employeeNRIC, String employeeEmail, String employeeContactNumber, String employeeAddress, Long attempt, boolean activatedStatus, long positionId, boolean deletedStatus);
    public Employee find(String userName, String password);
    public List<Employee> getEmployees();
    public void updateEmployee(long employeeId, String username, String password, String employeeName, String employeeNRIC, String employeeEmail, String employeeContactNumber, String employeeAddress, Long attempt, boolean activatedStatus, long positionId);
    public void updateEmployee(long employeeId, String employeeEmail, String employeeContactNumber, String employeeAddress);
    public void updatePassword(long employeeId, String newPassword);
    public boolean isAdmin(long employeeId);
    public boolean isCRMStaff(long employeeId);
    public boolean isFRMStaff(long employeeId);
    public boolean isMRPStaff(long employeeId);
    public boolean isSCMStaff(long employeeId);
    public void deleteEmployee(long employeeId);
    public void addContactList(long employeeId, long friendId);
    public void removeContactList(long employeeId, long friendId);
    public void updateWrongLogin(String userName);
}
